podman login -u kubeadmin -p $(oc whoami -t) default-route-openshift-image-registry.apps-crc.testing --tls-verify=false

echo "step 3.1 tag local image"
podman tag localhost/my-apisix:2 default-route-openshift-image-registry.apps-crc.testing/ingress-apisix/my-apisix:2

echo "step 3.2 push local miage to openshift internal registry"
podman push default-route-openshift-image-registry.apps-crc.testing/ingress-apisix/my-apisix:2


helm install my-apisix apisix/apisix --namespace ingress-apisix --create-namespace

helm install apisix-dashboard apisix/apisix-dashboard --create-namespace --namespace ingress-apisix

curl "http://apisix-admin-apisix.apps-crc.testing/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
{
  "methods": ["GET"],
  "host": "example.com",
  "uri": "/anything/*",
  "upstream": {
    "type": "roundrobin",
    "nodes": {
      "httpbin.org:80": 1
    }
  }
}'

curl -i -X GET "http://apisix-gateway-apisix.apps-crc.testing/anything/foo?arg=10" -H "host: example.com"